$(function(){

	var $btnSearch = $('#btnSearch');
	
	$btnSearch.click(function(){
		goSearch();
		
	});
	
});


function goSearch(){
	
	var search 		= $('#search').val();
	var keywords 	= $.trim($('#keywords').val());
	
	var params = {
			'search'	:	search,
			'keywords'	:	keywords
	}
	
	location.href = '/index.php/Admin/Message?' + $.param(params);
}